<h1>新增一项产品</h1>

<%= error_messages_for :product %>

<% form_for(@product) do |f| %>
  <%= render :partial => 'form',:locals =>{:f => f} %>
  <p>
    <%= f.submit "Save" %>
  </p>
<% end %>

<%= link_to 'Back', products_path %>
